import Layout from '@/layout'
// 员工
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      // 嵌套路由的默认路由(当访问父组件时，默认显示该路由)
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/index'),
      meta: { title: '员工', icon: 'people' }
    },
    // 员工详情的子路由
    {
      path: 'detail',
      name: 'employeesDetail',
      component: () => import('@/views/employees/detail'),
      hidden: true
    }
  ]
}
